eventcontrollerkey: Update im focus when active window changes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 30 Jul 2020 17:23:45 +0000 (13:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 30 Jul 2020 17:23:45 +0000 (13:23 -0400)
commit643d873f47f4f45d660759e9814254fce680d1f6
tree3cc1019914e3c56f34074d2fc8572647ce9cda3c
parentb0d40403e1063a0ab24d715e45680a112b19cbc6
eventcontrollerkey: Update im focus when active window changes

Use the new GTK_CROSSING_ACTIVE crossing events to update
the im context focus when the window becomes active or
inactive. IBus requires this, since it has only a single,
global focus location.

Fixes: #2390
gtk/gtkeventcontrollerkey.c